/*
 * model_builder.cc
 *
 *  Created on: May 21, 2009
 *      Author: toc
 */

#include "model_builder.h"
#include "trace.h"
#include "predictors/predictor_base.h"
#include "predictors/predictor_target.h"

Model_builder::Model_builder()
{
}

Model_builder::~Model_builder()
{
}

Model Model_builder::build_model(const Trace &trace)
{
  // evaluate predictors on trace

  Predictor_base *predictor = new Predictor_target("Eat");

  Report report = evaluate_predictor(*predictor, trace);
  // build model from best predictor
  Model model(predictor);

  return model;
}

Report Model_builder::evaluate_predictor(const Predictor_base &predictor, const Trace &trace)
{
  Report report;

  report.complexity = predictor.get_complexity();

  return report;
}
